﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace Moon.Sql
{
    internal class LambdaExpressionProvider
    {
        private ExpressionProvide _expression = null;

        public LambdaExpressionProvider(ExpressionProvide expression)
        {
            _expression = expression;
        }

        public string Resolve(Expression exp)
        {
            LambdaExpression le = exp as LambdaExpression;
            return _expression.Resolve(le.Body);
        }
    }
}
